﻿using CuoiHoi.Business;
using System;
using System.Data;
using System.Web.UI.WebControls;

namespace CuoiHoi.UserControls
{
    public partial class Media : System.Web.UI.UserControl
    {
        public DataTable TbAlbumAnh;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Page.RouteData.Values["IdMedia"] != null)
            {
                int IdItemMedia = int.Parse(Page.RouteData.Values["IdMedia"].ToString());
                TbAlbumAnh = BAlbum.Album_SelectAllByID(IdItemMedia);
            }
        }
        public string SelectAnhDaiDien(string idAlbum)
        {
            return BHinhAnh.SelectByIdAlbum(int.Parse(idAlbum)).DuongDanHinh;

        }
    }
}